package connect4client.commands;


import messages.*;


/**
 * The AccountEditionFailed command.
 * 
 * This command will handle AccountEditionFailed messages.
 */
public class AccountEditionFailedCommand extends Command {

	public AccountEditionFailedCommand(AccountEditionFailedMessage message){
		super(message);
	}
	
	@Override
	public void execute() {
		AccountEditionFailedMessage message = (AccountEditionFailedMessage) this.message;		
		guiMediator.accountEditionFailed(message.getOriginalMessage().getSenderLogin(), message.getOriginalMessage().getLogin(), message.getErrorCode());		
	}
}
